import request from "@/utils/request";
import { host } from "@/api/common";

// 获取接口信息中的环境信息
export function getenvlist(data) {
  return request({
    url: host + '/api/environment/list',
    method: 'post',
    data
  })
}

// 环境列表
export function get_envall(data) {
  return request({
    url: host + '/api/environment/all',
    method: 'post',
    data
  })
}

// 获取单个环境信息
export function get_environment(data) {
  return request({
    url: host + '/api/environment/get_environment',
    method: 'post',
    data
  })
}

// 新增环境
export function add_environment(data) {
  return request({
    url: host + '/api/environment/add_env',
    method: 'post',
    data
  })
}

// 编辑环境
export function edit_environment(data) {
  return request({
    url: host + '/api/environment/edit_env',
    method: 'post',
    data
  })
}

// 编辑环境
export function del_environment(data) {
  return request({
    url: host + '/api/environment/del_env',
    method: 'post',
    data
  })
}
